package com.dmatek.uwb.xml.dom.bean;

import com.dmatek.uwb.xml.dom.annotations.AttributeName;

/***
 * 配置信息类
 * @author zhangfu
 * @data 2019年6月12日 下午5:21:06
 * @Description
 */
public class Config implements DomElement {
	public final static String DOM_NAME = "config";
	@AttributeName(value="ip")
	private String ip;
	@AttributeName(value="port")
	private int port;
	@AttributeName(value="width")
	private int width;
	@AttributeName(value="height")
	private int height;
	@AttributeName(value="isFilter")
	private boolean isFilter;
	@AttributeName(value="filterArg")
	private float filterArg;
	public Config() {
		super();
		// TODO Auto-generated constructor stub
	}
	public Config(String ip, int port, int width, int height, boolean isFilter,
			float filterArg) {
		super();
		this.ip = ip;
		this.port = port;
		this.width = width;
		this.height = height;
		this.isFilter = isFilter;
		this.filterArg = filterArg;
	}
	public String getIp() {
		return ip;
	}
	public void setIp(String ip) {
		this.ip = ip;
	}
	public int getPort() {
		return port;
	}
	public void setPort(int port) {
		this.port = port;
	}
	public int getWidth() {
		return width;
	}
	public void setWidth(int width) {
		this.width = width;
	}
	public int getHeight() {
		return height;
	}
	public void setHeight(int height) {
		this.height = height;
	}
	public boolean isFilter() {
		return isFilter;
	}
	public void setFilter(boolean isFilter) {
		this.isFilter = isFilter;
	}
	public float getFilterArg() {
		return filterArg;
	}
	public void setFilterArg(float filterArg) {
		this.filterArg = filterArg;
	}
	@Override
	public String getDomName() {
		return DOM_NAME;
	}
	@Override
	public String toString() {
		return "Config [ip=" + ip + ", port=" + port + ", width=" + width
				+ ", height=" + height + ", isFilter=" + isFilter
				+ ", filterArg=" + filterArg + "]";
	}
}
